package com.cn.demo.mapper;

import com.cn.demo.entity.Internship;
import com.cn.demo.entity.InternshipExample;
import java.util.List;

import com.cn.demo.entity.InternshipLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public interface InternshipMapper {
    long countByExample(InternshipExample example);

    int deleteByExample(InternshipExample example);

    int deleteByPrimaryKey(String internshipId);

    int insert(Internship record);

    int insertSelective(Internship record);

    List<Internship> selectByExample(InternshipExample example);

    Internship selectByPrimaryKey(String internshipId);

    int updateByExampleSelective(@Param("record") Internship record, @Param("example") InternshipExample example);

    int updateByExample(@Param("record") Internship record, @Param("example") InternshipExample example);

    int updateByPrimaryKeySelective(Internship record);

    int updateByPrimaryKey(Internship record);

    List<InternshipLog> getOrganizationStudentInternshipLog(String internshipId);

    Internship getInternshipByStudentIdAndCurriculumInternshipId(@Param("studentId") String studentId,@Param("curriculumInternshipId") String curriculumInternshipId);

    Internship getInternshipCorporation(@Param("studentId")String studentId,@Param("curriculumInternshipId") String curriculumInternshipId);
}